<?php global $config;?>
<script type="text/javascript" src="<?php echo $config->live_site; ?>js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="<?php echo $config->live_site; ?>js/init.js"></script>
<link type='text/css' href='<?php echo $config->live_site; ?>css/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='<?php echo $config->live_site; ?>css/basic.css' rel='stylesheet' media='screen' />
<div class="loginorregis">
    <span><a id="login_link" href="#">Đăng nhập</a></span>
    <span> hoặc </span>
    <span><a id="register_link" href="#">Đăng ký</a></span>
</div>
<input type="hidden" id="url" value="<?php echo $_SERVER['REQUEST_URI']?>" />
<div class="contentlogin">
<div id="login_form" style='display:none'>

<div id="status" align="left">

<center><h1><img src="images/key.png" align="absmiddle">&nbsp;Đăng nhập</h1> 

<div id="login_response"><!-- spanner --></div> </center>

    <form id="login" action="javascript:alert('success!');">
        <label>E-Mail</label><input type="text" name="email" /><br />  
        <label>Mật khẩu</label><input type="password" name="password" /><br />  
        <label>&nbsp;</label><input value="Login" name="Login" id="submit" class="big" type="submit" /><input value="Quên mật khẩu?"  id="fotgetpass" class="big" type="button" />
        <div id="ajax_loading">
            <img align="absmiddle" src="images/spinner.gif" />&nbsp;Processing... 
        </div>
    </form>

 </div>

</div>



<div id="register_form" style="display: none;">
    <center><h1><img src="images/users_add.png" align="absmiddle">&nbsp;Đăng ký thành viên</h1> 
    
    <div id="register_response"><!-- spanner --></div> </center>
    <form name="signup-form" action="<?php echo Route::_() ?>" method="post">
        <table class="table-form-adduser" style="width: 90%;">
            <tr>
                <td class="table-form-adduser-label" style="width: 200px;">
                    <?php echo Resources::_('FULLNAME') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="text" name="fullname" value="<?php echo $this->se['fullname'] ?>" />
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('EMAIL') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="text" name="email" value="<?php echo $this->se['email'] ?>" />
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('PASSWORD') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="password" name="password" />
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('REPASSWORD') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="password" name="repassword" />
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('CMND') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="text" name="cmnd" value="<?php echo $this->se['cmnd'] ?>" />
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('PHONE') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <input type="text" name="phone" value="<?php echo $this->se['phone'] ?>" />
                </td>
            </tr>
            
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('CITY') ?>:
                </td>
                <td class="table-form-adduser-input" align="left">
                    <select name="cityid">
                            <?php foreach($this->citys as $city):?>
                                <option  value="<?php echo $city->id?>"><?php echo $city->city ?></option>
                            <?php endforeach;?>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('ADDRESS') ?>:
                </td>
                <td class="table-form-adduser-input">
                    <textarea cols="30" rows="4" name="address"><?php echo $this->se['address'] ?></textarea>
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    <?php echo Resources::_('CAPTCHA') ?>:
                </td>
                <td class="table-form-adduser-input" align="left">
                    <?php echo HTML::showcaptcha('user_new')?>
                </td>
            </tr>
            <tr>
                <td class="table-form-adduser-label">
                    
                </td>
                <td class="table-form-adduser-input">
                    <input type="text" name="captcha" />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input style="float: none;"  type="submit"  id="register_submit" value="<?php echo Resources::_('Đăng ký')?>"/><input style="float: none;"  type="button" onclick="go_to_private_page()" value="<?php echo Resources::_('Hủy')?>"/>
                </td>
            </tr>
        </table>
        <div id="register_ajax_loading" style="display: none;">
            <img align="absmiddle" src="images/spinner.gif" />&nbsp;Processing... 
        </div>
    </form>
</div>
</div>